<?php
/**
 * 旅馆管理
 *
 * @copyright Copyright © 2008 harry
 * @author harry 
 * @subpackage room
 * 
 */
FLEA::loadClass('controller_Abstruct');
class controller_FrontAdminGuestroom extends controller_Abstruct
{
	
	function __construct()
	{
		parent::__construct();
		$this->guest =& FLEA::getSingleton('table_SysGuest');
	}
	function __FrontAdminGuestRoomIndex()
	{
		$guestlist = $this->guest->findAll();
		//dump($guestlist);
		$this->smarty->assign(
			array(
				'guestlist' => $guestlist,
			));
		$this->smarty->display('default/hotel/guestroom.tpl');
	}
	function __FrontAdminGuestRoomAdd()
	{
		$this->smarty->display('default/hotel/addguestroom.tpl');
	}
}